<?php
/**
 * author: crisen
 * email: crisen@crisen.org
 * date: 18-12-24
 * description:
 */

namespace App\Admin\Extensions;

use Encore\Admin\Grid as BaseGrid;

class Grid extends BaseGrid
{


    /**
     * Add `actions` column for grid.
     *
     * @return void
     */
    protected function appendActionsColumn()
    {
        if (!$this->option('useActions')) {
            return;
        }

        $this->addColumn('__actions__', trans('admin.action'))
            ->displayUsing(Actions::class, [$this->actionsCallback]);

    }
}